import { post } from '../http'
import { cherryPick2Dict } from '@/utils/formatResponseData'

export const carManageDict = () =>
  post({
    url: '/carInfo/toList',
    format: (res) =>
      cherryPick2Dict(res.result, {
        fuelOiltype: 'fuelOiltype',
        carTypeList: 'carTypeList',
        dictDtoList: 'dictDtoList',
        sourceEnumList: 'sourceEnumList',
        statusList: 'statusList',
        operateStatusList: 'operateStatusList',
        operateActiveStatusList: 'operateActiveStatusList',
        bussPropertyList: 'bussPropertyListV1',
        sitesByUser: 'sitesByUser',
        tagStatusEnums: 'tagStatusEnums',
        carLabelEnum: 'carLabelEnum',
        useInstallmentList: 'useInstallmentList',
        carUseNatureList: 'carUseNatureList',
        etcWorkStatusList: 'etcWorkStatusList',
        tboxEquipmentStatusList: 'tboxEquipmentStatusList',
      }),
  })
